namespace Terra.Core.Infrastructure.Security;

/// <summary>
/// 当前用户服务接口
/// </summary>
public interface ICurrentUser
{
    /// <summary>
    /// 获取当前用户ID
    /// </summary>
    Guid? Id { get; }

    /// <summary>
    /// 获取当前用户名
    /// </summary>
    string Name { get; }

    /// <summary>
    /// 判断当前用户是否已认证
    /// </summary>
    bool IsAuthenticated { get; }
}